import {Entity, PrimaryGeneratedColumn, Column, ManyToOne, BaseEntity} from 'typeorm';
import { Role } from './role.entity';

@Entity()
export class RolePermission extends BaseEntity {
    @PrimaryGeneratedColumn()
    id: number;

    @ManyToOne(() => Role)
    role: Role;

    @Column()
    name: string;

    @Column()
    value: boolean;
}
